package com.andy.blog.dal.service;

import com.andy.blog.dal.domain.SysJobLogDO;
import com.andy.blog.dal.vo.SysJobLogVO;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * Created by andy on 2023/5/12 21:59
 */
public interface SysJobLogDalService {

    /**
     * 获取quartz调度器日志的计划任务
     */
    IPage<SysJobLogDO> selectListByPage(SysJobLogVO data);

    /**
     * 根据条件查询
     */
    List<SysJobLogDO> selectListByCondition(SysJobLogVO data);

    /**
     * 通过调度任务日志ID查询调度信息
     *
     * @param id 调度任务日志ID
     * @return 调度任务日志对象信息
     */
    SysJobLogDO selectById(Long id);

    /**
     * 批量删除
     */
    int deleteByIds(List<Long> logIds);

    /**
     * 清空
     */
    void cleanJobLog();

    /**
     * 新增
     */
    void insertJobLog(SysJobLogVO jobLogVO);

    /**
     * 根据id删除
     */
    int deleteById(Long jobId);
}
